package ltd.latewhale.whalenest.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import ltd.latewhale.whalenest.mapper.kuserMapper;
import ltd.latewhale.whalenest.model.kuserDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class kuserService extends ServiceImpl<kuserMapper, kuserDO> {

    @Autowired
    private kuserMapper kuserMapper;

    public List<kuserDO> getKid() {

        QueryWrapper<kuserDO> wrapper = new QueryWrapper<>();
        wrapper.eq("kname","kId_open").or().eq("kname","kid_close");

        List<kuserDO> kIdDatas = kuserMapper.selectList(wrapper);

        return kIdDatas;
    }
}
